#include <stdio.h>
#include <time.h>


void Print(int num)
{
  long long times=time(NULL);
  printf("result = %d, times: %lld\n",num,times);
}


int Add(int from,int to)
{
  int i=from;
  int sum=0;
  while(i<=to)
  {
    sum += i;
    i += 1;
  }
  return sum;
}

int main()
{

  int ret=Add(1,100);
  Print(ret);
  return 0;
}
